import React, { Suspense } from "react";
import ReactDOM from "react-dom/client";
import "./index.css";

import { RouterProvider } from "react-router-dom";
import router from "./router";
import { initTheme } from "./stores/themeStore";

//导入store的文件

// 初始化主题
initTheme();

const root = ReactDOM.createRoot(document.getElementById("root")!);
root.render(
  <React.StrictMode>
  
      <Suspense fallback={<div>loading...</div>}>
        <RouterProvider router={router}></RouterProvider>
      </Suspense>
    
  </React.StrictMode>
);


